﻿@using ELTE.SEM.Data.Managers

@{
    LogEntryManager entryManager = new LogEntryManager();
    }
<div id="filter-container">
    <script type="text/javascript" src="/Scripts/Page/SemLog/LogEntryFilter.js"></script>
    <div id="filter-title">
        Bejegyzések szűrése
    </div>
        <div class="log-filter log-filter-input-dates">
        <div class="log-filter-label">dátum</div>
        <div class="log-filter-input">
            <div class="filter-date" id="filter-date-from">
                <div>Dátumtól</div>
                <div>@Html.Partial("MCheck")</div>
                <div>@Html.Partial("DateSelector")</div>
            </div>
            <div class="filter-date" id="filter-date-to">
                <div>Dátumig</div>
                <div>@Html.Partial("MCheck")</div>
                <div>@Html.Partial("DateSelector")</div>
            </div>
        </div>
    </div>
    <div class="log-filter">
        <div class="log-filter-label">Bejegyzésrész típusa</div>
        <div class="log-filter-input">
            @Html.Partial("MCheck")
            <div class="styled-select">
            @*<div>*@
                <select id="filter-log-part-type">
                    @{
                        List<KeyValuePair<int, string>> entryTypes = entryManager.GetAvailableLogentryTypes();
                        foreach (var item in entryTypes)
                        {
                        <option value="@item.Key">@item.Value</option>
                        }
                    }
                </select>
            </div>
        </div>
    </div>
    @*<div class="log-filter">
        <div class="log-filter-label">
            Mintaazonosító
        </div>
        <div class="log-filter-input"></div>
    </div>
    <div class="log-filter">
        <div class="log-filter-label">Kliens/megrendelő</div>
        <div class="log-filter-input">
            @{
                string availableClients = String.Join(",", entryManager.GetAvailableLogentryClients());
                <input type="hidden" id="available-clients" value="@availableClients" />
                }
        </div>
    </div>*@
    <div class="log-filter">
        <div class="log-filter-label">Bejegyzés szövege</div>
        <div class="log-filter-input">
            <div>
                 @Html.Partial("MCheck")
            </div>
            <div id="filter-input-entry-text">
                <textarea id="log-filter-entry-text"></textarea>
            </div>
            
        </div>
    </div>
    <div class="log-filter">
        @Html.Partial("MButton", new Tuple<string, string>("btn-do-filter", "Szűrés"))
    </div>
    <div class="log-filter">
        @Html.Partial("MButton", new Tuple<string, string>("btn-clear-filter", "Szűrés törlése"))
    </div>
</div>
